/**
 * Description: RegisterLargeItemTypeAction.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Apr 9, 2009 10:31:54 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.web.action.registerinfo;

import java.util.List;

import net.sf.json.JSONArray;

import org.apache.log4j.Logger;
import org.directwebremoting.annotations.RemoteProxy;
import org.paradise.dms.pojo.RegisterLargeItemType;
import org.paradise.dms.services.RegisterLargeItemTypeService;
import org.paradise.dms.web.action.DMSBaseAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
 * @version 1.0 Apr 9, 2009 10:31:54 PM 李萌（neolimeng@gmail.com）created
 */
@RemoteProxy(name = "registerLargeItemTypeAction")
@Service
public class RegisterLargeItemTypeAction extends DMSBaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2627366074237977091L;

	@SuppressWarnings("unused")
	private static Logger log = Logger.getLogger(RegisterLargeItemTypeAction.class);

	@Autowired
	@Qualifier("registerLargeItemTypeServiceImpl")
	private RegisterLargeItemTypeService registerLargeItemTypeService;
	private RegisterLargeItemType rlit;
	private List<RegisterLargeItemType> lrlit;

	public JSONArray getAllRegisterLargeItemType() {
		lrlit = this.registerLargeItemTypeService.getAllLargeItemType();
		if (lrlit != null && lrlit.size() > 0) {
			JSONArray jsonarray = JSONArray.fromObject(lrlit);
			return jsonarray;
		}
		return null;
	}

	public RegisterLargeItemTypeService getRegisterLagerItemTypeService() {
		return registerLargeItemTypeService;
	}

	public void setRegisterLagerItemTypeService(RegisterLargeItemTypeService registerLagerItemTypeService) {
		this.registerLargeItemTypeService = registerLagerItemTypeService;
	}

	public RegisterLargeItemType getRlit() {
		return rlit;
	}

	public void setRlit(RegisterLargeItemType rlit) {
		this.rlit = rlit;
	}

	public List<RegisterLargeItemType> getLrlit() {
		return lrlit;
	}

	public void setLrlit(List<RegisterLargeItemType> lrlit) {
		this.lrlit = lrlit;
	}
}
